$(function () {
  var layTable = null
	layui.use('table', function () {
    var table = layui.table
    layTable = table

		table.render({
			elem: '#diathesis-table',
			url: '/Do/MS/queryMsBatchFileJson?' + $("#searchform").serialize(), //数据接口
			page: true,
			cols: [
				[
		      { type:'checkbox', fixed:'left', width: 50 },
					{ field: 'examName', title: '测评计划', width: '55%'},
					{ field: 'c', title: '开始时间', width: '10%' },
					{ field: 'b', title: '结束时间', width: '10%' },
          { field: 'a', title: '创建人	', width: '10%' },
					{ field: 'lastEditName', title: '创建时间', width: '15%' },
				],
			],
    })
  })
  
  $('.examineeManage #examinee_add').on('click', function() {
    layer.open({
      type: 1,
      title: '添加组织',
      content: $('#add-examinee'),
      offset: '30px',
      area: ['500px', '265px']
    })
  })

  $('.examineeManage #examinee_edit').on('click', function() {
    layer.open({
      type: 1,
      title: '修改组织',
      content: $('#edit-examinee'),
      offset: '30px',
      area: ['500px', '325px']
    })
  })
})
